var events = require("events");
var radium = new events.EventEmitter();
if(!radium)
	 console.log("radium is null");
else
	 console.dir(radium);
 
radium.on('radiation', function(ray) {
    console.log(ray);
});

for(var i=0; i<11; i++)
{
	radium.addListener('ping', function(args){
		console.log("listener pong " + args);
	});
}
 
radium.emit('radiation', 'GAMMA');
radium.emit('ping', i);
